package com.sc.VenusQueryBeta.model.vip;

import com.hengjun.kingstar.sdk.base.BaseModel;
import com.hengjun.kingstar.sdk.helper.RetrofitCreateHelper;
import com.hengjun.kingstar.sdk.helper.RxHelper;
import com.sc.VenusQueryBeta.api.Host;
import com.sc.VenusQueryBeta.api.home.HomeApi;
import com.sc.VenusQueryBeta.contract.vip.VipRootContract;
import com.sc.VenusQueryBeta.model.bean.AboutVGSBean;

import io.reactivex.Observable;


/**
 * Created by Administrator on 2018/10/26.
 */

public class VipRootModel extends BaseModel implements VipRootContract.IVipRootModel {


    public static VipRootModel newInstance() {
        return new VipRootModel();
    }


    @Override
    public Observable<AboutVGSBean> aboutVGS(long id) {
        return RetrofitCreateHelper.createApi(HomeApi.class, Host.HostUpdate).about(id).compose(RxHelper.<AboutVGSBean>rxSchedulerHelper());
    }

}
